package cc.shacocloud.mirage.demo.kotlin.service

import cc.shacocloud.mirage.bean.bind.Component
import cc.shacocloud.mirage.core.event.EnvironmentChangeEvent
import cc.shacocloud.mirage.kotlin.Slf4j
import cc.shacocloud.mirage.kotlin.Slf4j.Companion.log
import cc.shacocloud.mirage.kotlin.core.CoroutineApplicationListener

/**
 * @author 思追(shaco)
 * @date 2023/3/10
 */
@Slf4j
@Component
class MirageDemoEventBean : CoroutineApplicationListener<EnvironmentChangeEvent> {

    override suspend fun doApplicationEvent(event: EnvironmentChangeEvent) {
        log.info("配置发生变更...")
    }

}